package com.jzy.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author jzy
 * @date 2020/9/11 15:35
 * 上架 保存es数据
 */
@Data
public class SkuEsTo {

    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount; //销量

    private Boolean hasStock; //是否有库存

    private Long hotScore;  //热点评分

    private Long brandId;

    private Long catalogId;

    private String brandName;

    private String brandImg;

    private String catalogName;

    private List<Attrs> attrs;

    @Data
    public static class Attrs{

        private Long attrId;

        private String attrName;

        private String attrValue;

    }
}
